package com.zzy.mq;

import org.springframework.amqp.rabbit.annotation.*;
import org.springframework.context.annotation.Configuration;


/**
 * 系统启动 监听 消息
 */
@Configuration
@RabbitListener(queues = "zzy-mq")
public class Recive {


    @RabbitHandler
    public void process(String msg){
        System.out.println("Recive类，接收到消息:" + msg);
    }



}
